package ru.susu.algebra.chartable;

import java.lang.reflect.Array;



/**
 * @author akargapolov
 * @since: 26.02.2009
 */
public class SymmetricGroupArrayBasedCharTable<V> extends PermGroupCharTableBase<V>
{
	private Object[][] _data;

	private Integer _size;

	public SymmetricGroupArrayBasedCharTable(int size)
	{
		super();
		_size = size;
		_data = (Object[][])Array.newInstance(Object.class, _size, _size);
	}

	public Integer getSize()
	{
		return _size;
	}

	@Override
	public V getCharacter(int row, int col)
	{
		return (V)_data[row][col];
	}

	@Override
	public void setCharacter(int row, int col, V value)
	{
		_data[row][col] = value;
	}

}
